import { Pipe, PipeTransform } from '@angular/core';
import { TemplateCriteriaModel } from '../../../models/templateCriteria.model';
@Pipe({
    name: 'screenable'
})
export class ScreenablePipe implements PipeTransform {
    transform(items: TemplateCriteriaModel[], screenable: boolean): TemplateCriteriaModel[] {
        if (!items) return [];
        return items.filter(item => { return item.isScreenable == screenable; });
    }
}